package com.hdax.dm.mapstucts;

import com.hdax.dm.beans.Scheduler.DmSchedulerSeat;
import com.hdax.dm.beans.Scheduler.DmSchedulerSeatPrice;
import com.hdax.dm.beans.Scheduler.DmScheduler;
import com.hdax.dm.dto.getScheduleDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "Spring")
public abstract class getScheduleDtoMapper {

    @Mapping(source = "id",target = "scheduleId")
    public abstract getScheduleDto toTarget(DmScheduler source);

    public abstract List<getScheduleDto> toTargetList(List<DmScheduler> sources);

    public abstract getScheduleDto.seatPrice toseatPrice(DmSchedulerSeatPrice source);

    public abstract List<getScheduleDto.seatPrice> toseatPriceList(List<DmSchedulerSeatPrice> sources);

    public abstract getScheduleDto.seatInfo toseatInfo(DmSchedulerSeat source);

    public abstract List<getScheduleDto.seatInfo> toseatInfoList(List<DmSchedulerSeat> sources);
}
